<include file="Public/newset-header" title="存储设置" />
<link rel="stylesheet" href="__STATIC__/css/add.css">
<div class="container" style="padding-bottom:40px;">
        <ul class="breadcrumb">
                <li><a href="{:U('Index/index')}">首页</a></li>
                <li><a href="{:U('member/index')}">基本设置</a></li>
                <li class="active">第三级</li>
        </ul>
    <div class="row">
        <include file="Public/newset-sidebar" title="侧边栏" />
    <div class="col-md-9">
        <div class="headline">
            <h1>存储设置</h1>
        </div>
        <div class="message">
            <form action="{:U('member/config22')}" method="post">
            <div class="messages-inner">
            <section>
                <!-- <label style="text-align: left;">存储设置</label> -->

                <div class="row storage">

                <div class="col-xs-6 col-lg-4">
                    <p><i class="fa fa-server outer" ></i>服务器外部存储</p>
                    <a href="javascript:;" class="on" value="1">已选择</a>
                    </div>
                <div class="col-xs-12 col-lg-4">
                    <p><img src="__STATIC__/img/qiniu-icon_12.png" style="width:16px;margin-right:8px;"/>七牛云（支持华东空间）</p>
                    <a href="javascript:;" value="0" class="">选择</a>
                </div>
            </div>
            </section>
            <section>
                <label class="uploading-way">上传方式:<i>七牛</i><a href="" style="color:#268df7;">点击注册七牛帐号</a><a href="" style="color:#ff0000;">[接口配置教程]</a></label>
            </section>
            </div>
            <hr>
            <div class="message-footer">
                 <input type="hidden" id="isggconfig" name="isggconfig" value="{$result.isggconfig}"/>
                <input type="hidden" name="id" value="{$fid}">
                <span>[如需更改成其他配置信息,请删除之前所有APP]</span><button href="" class="affirm-btn" type="submit">确认修改</button>
            </div>
            </form>
        </div>

    </div>
</div>
</div>
<include file="Public/newset-footer" />
<script>
    $(function(){
        $(".storage a").click(function(){
            $(".storage a").removeClass("on");
            $(".storage a").text("选择");
            $(this).addClass("on").text("已选择");
            $("#isggconfig").val($(this).attr("value"));
        })

//        $(".storage a").each(function () {



            if ("{$result.isggconfig}" == "1") {

                $(".storage a").removeClass("on").text("选择");
                $(".storage a[value*='1']").addClass("on").text("已选择")
            }else if("{$result.isggconfig}" == "2"){

                $(".storage a").removeClass("on").text("选择");
                $(".storage a[value*='2']").addClass("on").text("已选择")
            }else if("{$result.isggconfig}" == "0"){

                $(".storage a").removeClass("on").text("选择");
                $(".storage a[value*='0']").addClass("on").text("已选择")
            }

//        })
    })
</script>